home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12369 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 71 75 | 61 6c 63 6f 6d 6d 2e 63 |Path: qu|alcomm.c|
|00000010| 6f 6d 21 75 73 65 6e 65 | 74 0a 46 72 6f 6d 3a 20 |om!usene|t.From: |
|00000020| 22 50 61 75 6c 20 57 6f | 6c 66 20 28 50 43 29 22 |"Paul Wo|lf (PC)"|
|00000030| 20 3c 70 77 6f 6c 66 40 | 71 75 61 6c 63 6f 6d 6d | <pwolf@|qualcomm|
|00000040| 2e 63 6f 6d 3e 0a 4e 65 | 77 73 67 72 6f 75 70 73 |.com>.Ne|wsgroups|
|00000050| 3a 20 63 6f 6d 70 2e 6c | 61 6e 67 2e 63 0a 53 75 |: comp.l|ang.c.Su|
|00000060| 62 6a 65 63 74 3a 20 52 | 65 3a 20 4e 65 65 64 20 |bject: R|e: Need |
|00000070| 68 65 6c 70 20 77 69 74 | 68 20 61 20 53 54 52 49 |help wit|h a STRI|
|00000080| 4e 47 20 74 68 61 74 20 | 77 6f 6e 27 74 20 67 6f |NG that |won't go|
|00000090| 20 61 77 61 79 21 21 21 | 0a 44 61 74 65 3a 20 53 | away!!!|.Date: S|
|000000a0| 61 74 2c 20 33 30 20 4d | 61 72 20 31 39 39 36 20 |at, 30 M|ar 1996 |
|000000b0| 31 32 3a 35 34 3a 34 34 | 20 2d 30 38 30 30 0a 4f |12:54:44| -0800.O|
|000000c0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 51 75 61 |rganizat|ion: Qua|
|000000d0| 6c 63 6f 6d 6d 20 49 6e | 63 2e 0a 4d 65 73 73 61 |lcomm In|c..Messa|
|000000e0| 67 65 2d 49 44 3a 20 3c | 33 31 35 44 39 46 39 34 |ge-ID: <|315D9F94|
|000000f0| 2e 32 41 33 30 40 71 75 | 61 6c 63 6f 6d 6d 2e 63 |.2A30@qu|alcomm.c|
|00000100| 6f 6d 3e 0a 52 65 66 65 | 72 65 6e 63 65 73 3a 20 |om>.Refe|rences: |
|00000110| 3c 34 6a 68 37 65 32 24 | 6a 6a 72 40 61 62 65 6c |<4jh7e2$|jjr@abel|
|00000120| 2e 63 63 2e 73 75 6e 79 | 73 62 2e 65 64 75 3e 0a |.cc.suny|sb.edu>.|
|00000130| 4e 4e 54 50 2d 50 6f 73 | 74 69 6e 67 2d 48 6f 73 |NNTP-Pos|ting-Hos|
|00000140| 74 3a 20 61 6e 6e 65 78 | 2d 70 33 2e 71 75 61 6c |t: annex|-p3.qual|
|00000150| 63 6f 6d 6d 2e 63 6f 6d | 0a 4d 69 6d 65 2d 56 65 |comm.com|.Mime-Ve|
|00000160| 72 73 69 6f 6e 3a 20 31 | 2e 30 0a 43 6f 6e 74 65 |rsion: 1|.0.Conte|
|00000170| 6e 74 2d 54 79 70 65 3a | 20 74 65 78 74 2f 70 6c |nt-Type:| text/pl|
|00000180| 61 69 6e 3b 20 63 68 61 | 72 73 65 74 3d 75 73 2d |ain; cha|rset=us-|
|00000190| 61 73 63 69 69 0a 43 6f | 6e 74 65 6e 74 2d 54 72 |ascii.Co|ntent-Tr|
|000001a0| 61 6e 73 66 65 72 2d 45 | 6e 63 6f 64 69 6e 67 3a |ansfer-E|ncoding:|
|000001b0| 20 37 62 69 74 0a 58 2d | 4d 61 69 6c 65 72 3a 20 | 7bit.X-|Mailer: |
|000001c0| 4d 6f 7a 69 6c 6c 61 20 | 32 2e 30 20 28 57 69 6e |Mozilla |2.0 (Win|
|000001d0| 31 36 3b 20 49 29 0a 54 | 6f 3a 20 47 65 6f 72 67 |16; I).T|o: Georg|
|000001e0| 65 20 48 61 75 73 65 72 | 20 3c 67 68 61 75 73 65 |e Hauser| <ghause|
|000001f0| 72 40 69 63 2e 73 75 6e | 79 73 62 2e 65 64 75 3e |r@ic.sun|ysb.edu>|
|00000200| 0a 0a 47 65 6f 72 67 65 | 20 48 61 75 73 65 72 20 |..George| Hauser |
|00000210| 77 72 6f 74 65 3a 0a 3e | 20 5b 73 6e 69 70 5d 0a |wrote:.>| [snip].|
|00000220| 0a 54 72 79 20 74 68 69 | 73 20 6d 6f 64 69 66 69 |.Try thi|s modifi|
|00000230| 65 64 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 79 6f |ed versi|on of yo|
|00000240| 75 72 20 63 6f 64 65 2e | 20 54 68 65 20 70 72 69 |ur code.| The pri|
|00000250| 6e 63 69 70 6c 65 20 69 | 6c 6c 75 73 74 72 61 74 |nciple i|llustrat|
|00000260| 65 64 20 69 73 20 74 6f | 20 0a 61 6c 77 61 79 73 |ed is to| .always|
|00000270| 20 69 6e 69 74 69 61 6c | 69 7a 65 20 74 68 65 20 | initial|ize the |
|00000280| 6c 6f 6f 70 20 74 65 72 | 6d 69 6e 61 74 69 6f 6e |loop ter|mination|
|00000290| 20 63 6f 6e 64 69 74 69 | 6f 6e 20 42 45 46 4f 52 | conditi|on BEFOR|
|000002a0| 45 20 65 6e 74 65 72 69 | 6e 67 20 61 20 77 68 69 |E enteri|ng a whi|
|000002b0| 6c 65 20 0a 6c 6f 6f 70 | 2e 0a 0a 3e 20 20 72 65 |le .loop|...> re|
|000002c0| 63 6f 72 64 73 20 3d 20 | 30 3b 0a 3e 20 20 66 67 |cords = |0;.> fg|
|000002d0| 65 74 73 28 6c 69 6e 65 | 2c 6c 69 6e 65 6d 61 78 |ets(line|,linemax|
|000002e0| 2c 73 6f 75 72 63 65 66 | 70 29 3b 0a 3e 20 20 77 |,sourcef|p);.> w|
|000002f0| 68 69 6c 65 28 21 66 65 | 6f 66 28 73 6f 75 72 63 |hile(!fe|of(sourc|
|00000300| 65 66 70 29 29 0a 3e 20 | 20 7b 0a 3e 20 20 20 20 |efp)).> | {.> |
|00000310| 20 69 66 20 28 66 65 72 | 72 6f 72 28 73 6f 75 72 | if (fer|ror(sour|
|00000320| 63 65 66 70 29 29 0a 3e | 20 20 20 20 20 7b 0a 3e |cefp)).>| {.>|
|00000330| 20 20 20 20 20 20 20 20 | 70 72 69 6e 74 66 28 22 | |printf("|
|00000340| 5c 6e 45 72 72 6f 72 20 | 77 68 69 6c 65 20 72 65 |\nError |while re|
|00000350| 61 64 69 6e 67 20 73 6f | 75 72 63 65 20 66 69 6c |ading so|urce fil|
|00000360| 65 2e 5c 6e 22 29 3b 0a | 3e 20 20 20 20 20 20 20 |e.\n");.|> |
|00000370| 20 65 78 69 74 28 31 29 | 3b 0a 3e 20 20 20 20 20 | exit(1)|;.> |
|00000380| 7d 0a 3e 20 20 20 20 20 | 66 70 75 74 73 28 6c 69 |}.> |fputs(li|
|00000390| 6e 65 2c 64 65 73 74 66 | 70 29 3b 20 20 20 20 20 |ne,destf|p); |
|000003a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2a 20 | | /* |
|000003b0| 57 72 69 74 65 20 74 6f | 20 64 69 73 6b 20 2a 2f |Write to| disk */|
|000003c0| 20 0a 3e 20 20 20 20 20 | 72 65 63 6f 72 64 73 2b | .> |records+|
|000003d0| 2b 3b 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |+; | |
|000003e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2a 20 | | /* |
|000003f0| 49 6e 63 72 65 6d 65 6e | 74 20 6f 75 72 20 63 6f |Incremen|t our co|
|00000400| 75 6e 74 65 72 20 2a 2f | 0a 3e 20 20 20 20 20 66 |unter */|.> f|
|00000410| 67 65 74 73 28 6c 69 6e | 65 2c 6c 69 6e 65 6d 61 |gets(lin|e,linema|
|00000420| 78 2c 73 6f 75 72 63 65 | 66 70 29 3b 20 0a 3e 0a |x,source|fp); .>.|
|00000430| 3e 20 20 7d 20 20 2f 2a | 20 77 68 69 6c 65 28 21 |> } /*| while(!|
|00000440| 66 65 6f 66 28 73 6f 75 | 72 63 65 66 70 29 29 20 |feof(sou|rcefp)) |
|00000450| 2f 0a 3e 0a 3e 20 20 66 | 63 6c 6f 73 65 28 73 6f |/.>.> f|close(so|
|00000460| 75 72 63 65 66 70 29 3b | 20 20 2f 2a 20 43 6c 6f |urcefp);| /* Clo|
|00000470| 73 65 20 73 6f 75 72 63 | 65 20 66 69 6c 65 2e 20 |se sourc|e file. |
|00000480| 2a 2f 0a 3e 20 20 66 63 | 6c 6f 73 65 28 64 65 73 |*/.> fc|lose(des|
|00000490| 74 66 70 29 3b 20 20 20 | 20 2f 2a 20 43 6c 6f 73 |tfp); | /* Clos|
|000004a0| 65 20 64 65 73 74 69 6e | 61 74 69 6f 6e 20 66 69 |e destin|ation fi|
|000004b0| 6c 65 2e 20 2a 2f 0a 3e | 20 20 70 72 69 6e 74 66 |le. */.>| printf|
|000004c0| 28 22 54 6f 74 61 6c 20 | 4e 75 6d 62 65 72 20 4f |("Total |Number O|
|000004d0| 66 20 52 65 63 6f 72 64 | 73 20 50 72 6f 63 65 73 |f Record|s Proces|
|000004e0| 73 65 64 3a 20 25 64 20 | 5c 6e 22 2c 20 72 65 63 |sed: %d |\n", rec|
|000004f0| 6f 72 64 73 29 3b 0a 3e | 20 7d 20 2f 2a 20 45 6e |ords);.>| } /* En|
|00000500| 64 20 2a 2f 0a 0a 2d 2d | 0a |d */..--|. |
+--------+-------------------------+-------------------------+--------+--------+